/**
 * 值相等的最小索引
 *
 * @USER: Administrator
 * @DATE: 2024/9/30 下午7:16
 * @VERSION: 1.0.0
 */
public class LC2057 {
    public static void main(String[] args) {

    }

    public int smallestEqual(int[] nums) {
        for (int i = 0; i < nums.length; i++) {
            if (i%10==nums[i]){
                return i;
            }
        }
        return -1;
    }

}
